<li>
	<div id="properties_list<?= $this->formGetEditSessionKey() ?>" class="clear relative">
		<? $this->renderPartial('properties_list') ?>
	</div>

	<p class="last">
		<a class="imageLink addDocument img_noBottomPading" href="#" onclick="$('property_id').value = ''; new PopupForm('onLoadPropertyForm', {ajaxFields: $('property_id').getForm()}); return false;">Add attribute</a>

		<a class="imageLink putDocument img_noBottomPading" href="#" onclick="$('property_id').value = ''; new PopupForm('onLoadSavePropertiesForm', {ajaxFields: $('property_id').getForm()}); return false;">Save property set</a>

		<a class="imageLink stackDocument img_noBottomPading" href="#" onclick="$('property_id').value = ''; new PopupForm('onLoadLoadPropertiesForm', {ajaxFields: $('property_id').getForm()}); return false;">Load property set</a>
	</p>

	<input type="hidden" name="property_id" id="property_id" value=""/>

	<script type="text/javascript">
		function updatePropertyList(session_key)
		{
			cancelPopup();

			$('properties_list'+session_key).getForm().sendPhpr(
				'onUpdatePropertyList',
				{
					update: 'properties_list'+session_key,
					loadIndicator: {
						show: true,
						element: 'properties_list'+session_key,
						hideOnSuccess: true,
						injectInElement: true,
						src: 'phproad/resources/images/form_load_30x30.gif'
					},
					onSuccess: function(){
						make_attributes_sortable(session_key);
					}
				}
			)
		}
	</script>
</li>